repeat while (soundBusy(whichChannel)) and not (the mouseDown)
updateStage
end repeat
checkPassClick
end waitSound
on waitVideo whichSprite
set the movietime of sprite whichsprite = 0 -- REWIND
set the movierate of sprite whichsprite = 1 -- START PLAYING
repeat while (the movieRate of sprite whichSprite > 0) and not (the mouseDown) and not (the movietime of sprite whichSprite >= the duration of cast the castNum of sprite whichSprite)